package gr.unipi.mscd1;

public class PrInfo extends SnmpGenInfo {
	private int id;
	private String name;
	private int cpu;
	private int memory;
	
	public PrInfo() {
		super();
		id = 0;
		name = "";
		cpu = 0;
		memory = 0;
	}

	public PrInfo(int id, String name, int cpu, int memory) {
		super();
		this.id = id;
		this.name = name;
		this.cpu = cpu;
		this.memory = memory;
	}
	
	public PrInfo(ProcessInfo info) {
		super();
		this.id = (Integer)info.getOids().get(0).getValue();
		this.name = (String)info.getOids().get(1).getValue();
		this.cpu = (Integer)info.getOids().get(2).getValue();
		this.memory = (Integer)info.getOids().get(3).getValue();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCpu() {
		return cpu;
	}

	public void setCpu(int cpu) {
		this.cpu = cpu;
	}

	public int getMemory() {
		return memory;
	}

	public void setMemory(int memory) {
		this.memory = memory;
	}
}
